<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>浮动——导航栏</title>
    <style type="text/css">
        div {
            height: 50px;
            background-color: #333333;
            color: white;
        }

        li {
            list-style-type: none;
            width: 80px;
            line-height: 50px;
            text-align: center;
        }

        ul:nth-child(1) > li {
            float: left;
        }

        ul:nth-child(2) > li {
            float: right;
        }
    </style>
</head>
<body>
<div>
    <ul>
        <li>小米官网</li>
        <li>小米商场</li>
        <li>MIUI</li>
        <li>云服务</li>
    </ul>
    <ul>
        <li>消息通知</li>
        <li>注册</li>
        <li>登录</li>
    </ul>
</div>
</body>
</html>